package com.qyl.deguru.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qyl.deguru.common.PageModel;
import com.qyl.deguru.common.QueryVo;
import com.qyl.deguru.dto.Shop;

public interface ShopMapper {
	//显示商品详情信息
	List<Shop> showShopList(@Param("shop") Shop shop,@Param("pageModel") PageModel pageModel);
	//分页：显示总记录数
	int getcount();
	//根据id删除商品信息
	int delShopById(int id);
	//批量删除
	int delShops(int[] ids);
	//新增商品信息
	int addShop(@Param("shop") Shop shop);
	//根据id获取商品信息
	Shop getShopById(int id);
	//更新商品信息
	int shopUpdate(@Param("shop") Shop shop);
	
	void delShopByType_code(String code);
	void delShopsByType_code(String[] ids);
	//根据类型获取id
	int[] getIdByCode(String code);
	
	int[] getIdsByCode(String[] ids);
	//显示商品信息
	List<Shop> getShop();
	List<Shop> getShopByisHot();
	List<Shop> getShopByisHot2();
	List<Shop> getShopByisHot3();
	List<Shop> getShopByisHot4();
	List<Shop> getShopByisHot5();
	//根据商品类型获取商品信息
	List<Shop> getShopByCode(QueryVo queryVo);
	//获得所有商品列表
	List<Shop> showAllShop();
	
	
}
